package ru.papergames.battleserver.network.serverpackets.flashuser;

/**
 * TODO: add description
 * Date: 15.01.12 15:38
 *
 * @author Alexander Troshanin
 */
public class NotifyUserBattleCreateFailed extends PaperGameServerPacket {

    private int battleOrderId;

    public NotifyUserBattleCreateFailed(int battleOrderId) {
        this.battleOrderId = battleOrderId;
    }

    @Override
    protected int getPacketId() {
        return NOTIFY_USER_BATTLE_CREATE_FAILED_PACKET_ID;
    }

    @Override
    protected void writePacketData() {
        writeD(battleOrderId);
    }

}
